From 56cbb2da75140f4db6c966f62c214e605d48cf40 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 6 Apr 2004 15:45:07 +0000 Subject: [PATCH] Pedantic leak fixes that aren't actually leak fixes at all... From Rick. --- gpsbabel/geoniche.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gpsbabel/geoniche.c b/gpsbabel/geoniche.c index 36f3901d2..12aac56bb 100644 --- a/gpsbabel/geoniche.c +++ b/gpsbabel/geoniche.c @@ -335,16 +335,17 @@ data_read(void) wpt->longitude = lon; wpt->altitude = alt; wpt->icon_descr = category; + wpt->icon_descr_is_dynamic = 1; if (gid[0]) { - wpt->shortname = strdup(gid); + wpt->shortname = xstrdup(gid); wpt->description = title; wpt->notes = notes; } else { - wpt->shortname = strdup(title); + wpt->shortname = xstrdup(title); wpt->description = title; wpt->notes = notes; } @@ -439,7 +440,7 @@ copilot_writewpt(const waypoint *wpt) /* Notes field MUST have soemthing in it */ if (!wpt->notes || wpt->notes[0] == 0) - notes = strdup(title); + notes = xstrdup(title); else notes = enscape(wpt->notes); -- 2.30.2